package com.ctgu.redislock03.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 
 * @TableName t_orders
 */
@TableName(value ="t_orders")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class OrdersEntity implements Serializable {

    @TableId(value = "id")
    private Long id;

    @TableField(value = "user_id")
    private Integer userId;

    @TableField(value = "voucher_id")
    private Integer voucherId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}